<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <title>会员列表</title>
        <link href="<?php echo (C("backcss_path")); ?>/mine.css" type="text/css" rel="stylesheet" />
        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    </head>
    <body>
        <style>
            .tr_color{background-color: #9F88FF}
            .current{
                margin-left: 15px;
            }
            .num{
                margin-left: 15px;
            }
        </style>
        <div class="div_head">
            <span>
                <span style="float: left;">当前位置是：权限管理-》分配权限</span>
            </span>
        </div>
        <div></div>
<h2>当前分配权限的角色：<?php echo ($role_info["role_name"]); ?></h2>
        <form action="" method="post" >
        <div style="font-size: 13px; margin: 10px 5px;">
            <table class="table_a" border="1" width="100%">
                <tbody>

                <?php if(is_array($level0)): foreach($level0 as $key=>$l0): ?><tr>
                        <td><input type='checkbox' name='auth_id[]' value='<?php echo ($l0["auth_id"]); ?>'
                            <?php if(in_array(($l0['auth_id']), is_array($role_info['role_auth_ids'])?$role_info['role_auth_ids']:explode(',',$role_info['role_auth_ids']))): ?>checked="checked"<?php endif; ?>
                        /><?php echo ($l0["auth_name"]); ?></td>
                        <td>
                        <?php if(is_array($level1)): foreach($level1 as $key=>$l1): if($l1['auth_pid'] == $l0['auth_id']): ?><input type="checkbox" name="auth_id[]" value="<?php echo ($l1["auth_id"]); ?>"
                                <?php if(in_array(($l1['auth_id']), is_array($role_info['role_auth_ids'])?$role_info['role_auth_ids']:explode(',',$role_info['role_auth_ids']))): ?>checked="checked"<?php endif; ?>
                                /><?php echo ($l1["auth_name"]); endif; endforeach; endif; ?>
                        </td>
                    </tr><?php endforeach; endif; ?>



                </tbody>
            </table>
        </div>
            <input type="hidden" name="role_id" value="<?php echo ($role_info["role_id"]); ?>">
            <input type="submit" value="修改" >
        </form>
    </body>
</html>